﻿using System;
using System.Collections.Generic;
using System.Text;

namespace T.FAS.Runtime.Base.Entity
{
    /// <summary>
    /// QueryPlan支持的操作符
    /// </summary>
    public static class QueryOperator
    {
        /// <summary>
        /// =
        /// </summary>
        public const string Equal = "=";

        /// <summary>
        /// <>
        /// </summary>
        public const string NotEqual = "<>";

        /// <summary>
        /// <
        /// </summary>
        public const string LessThan = "<";

        /// <summary>
        /// >
        /// </summary>
        public const string GreaterThan = ">";

        /// <summary>
        /// >=
        /// </summary>
        public const string GreaterEqualThan = ">=";

        /// <summary>
        /// <=
        /// </summary>
        public const string LessEqualThan = "<=";

        /// <summary>
        /// Contains
        /// </summary>
        public const string Contains = "contains";

        /// <summary>
        /// NotContains
        /// </summary>
        public const string NotContains = "notcontains";

        /// <summary>
        /// 定长模糊匹配
        /// </summary>
        public const string FixedLengthContains = "fixedlengthcontains";

        /// <summary>
        /// StartsWith
        /// </summary>
        public const string StartsWith = "startswith";

        /// <summary>
        /// EndsWith
        /// </summary>
        public const string EndsWith = "endswith";

        /// <summary>
        /// Between
        /// </summary>
        public const string Between = "between";

        /// <summary>
        /// In
        /// </summary>
        public const string In = "in";

        /// <summary>
        /// NotIn
        /// </summary>
        public const string NotIn = "notin";
    }
}
